package fr.upmc.ta.ppm.android;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import fr.upmc.ta.ppm.android.model.IconFile;

public class FolderInformation extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(null);

		String name = getIntent().getStringExtra("FolderName");
		String url = getIntent().getStringExtra("ForlderUri");

		if (name == null && url == null) {

			IconFile icf = new IconFile();
			TextView tv = new TextView(this);
			tv.setText((CharSequence)name);
//			icf.setName(tv);
//			tv.setText((CharSequence)url);
//			icf.setUrl(tv);
			name = icf.getName() + " - " + icf.getUrl();

		}
		
		TextView tvname = (TextView)findViewById(R.id.id_item_file);
		TextView tvurl = (TextView)findViewById(R.id.idUrl);
		tvname.setText(name);
		tvurl.setText(url);
	}
}
